const optGroups = [
    (
        None,
        [
            {
                'name': 'fk_good',
                'value': '',
                'label': '---------',
                'selected': False,
                'index': '0',
                'attrs': {},
                'type': 'select',
                'template_name': 'scan_select_option.html'
            }
        ],
        0
    ),

    (
        None,
        [
            {
                'name': 'fk_good',
                'value': 87,
                'label': 'GoodCode:2019031433116;GoodTitle:A GOOD USED FOR TEST;',
                'selected': False,
                'index': '1',
                'attrs': {},
                'type': 'select',
                'template_name': 'scan_select_option.html'
            }
        ],
        1
    ),

    (
        None,
        [
            {'name': 'fk_good',
             'value': 1,
             'label': 'GoodCode:2019022532964;GoodTitle:女装 棉混纺宽松船领长针织衫(长袖) 415364;',
             'selected': True,
             'index': '2',
             'attrs': {'selected': True},
             'type': 'select',
             'template_name': 'scan_select_option.html'
             }
        ],
        2),
    (
        None,
        [
            {'name': 'fk_good',
             'value': 2,
             'label': 'GoodCode:2019022546529;GoodTitle:女装 条纹连衣裙(长袖) 415482;',
             'selected': False,
             'index': '3',
             'attrs': {},
             'type': 'select',
             'template_name': 'scan_select_option.html'
             }
        ],
        3)
];

for(const group of optGroups){
    for(const opt of group[1]){
        console.log(opt)
    }
}
